home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6146 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HELP: UNIX's directory functions.
  5. Date: 22 Feb 1996 11:38:56 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4gigogINN8nq@keats.ugrad.cs.ubc.ca>
  8. References: <Pine.ULT.3.91.960217002153.21669B-100000@hertz.njit.edu> <824598921snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <824598921snz@genesis.demon.co.uk>,
  12. Lawrence Kirby  <fred@genesis.demon.co.uk> wrote:
  13.  >In article <Pine.ULT.3.91.960217002153.21669B-100000@hertz.njit.edu>
  14.  >           dxp8108@hertz.njit.edu "Dharmesh Patel" writes:
  15.  >
  16.  >>
  17.  >>Hi all!
  18.  >>
  19.  >>I need help with couple of things in C.  I need to know how the functions 
  20.  >>opendir, readdir, closedir, and rewinddir work.  I also need to know the 
  21.  >>elements of the struct dirent.
  22.  >
  23.  >Unfortunately these are not defined in C. 
  24.  >
  25.  >>The reason for this request is that I have to write a program that 
  26.  >>simulates the unix command 'pwd', the hard way.
  27.  >
  28.  >They are Unix/POSIX defined functions and the place to ask about them
  29.  >is comp.unix.programmer.
  30.  
  31. ...and I might add that the revered "K&R" book does cover the basic UNIX
  32. programming interface, including directory functions, stat() and other goodies.
  33.  
  34. It sounds like you don't have this book. Shame! :)
  35. -- 
  36.  
  37.